<template>
  <div class="container">
    <h3>footer</h3>
    <button @click="fecthData">发送请求</button>
    <el-button>按钮</el-button>
    <el-icon size="10" color="red">
      <Edit />
    </el-icon>
  </div>
</template>

<script lang='ts' setup>
import { findAllUser } from "@/apis/userApi"
// import {IUser} from "@/interfaces/userInterface"
const fecthData = async () => {
  const res = await findAllUser()
  console.log(res);

  // const user:IUser = {
  //   username:"xiaowang",
  //   role:"管理员"
  // }
  // const res = await findUserByName(user)
  // console.log(res);


}
// import axios from "axios"
// const fecthData =async () => {
//   const res = await axios.get("/api/users/getAccountList2")
//   console.log(res);
// }
</script>

<style lang='scss' scoped>
.container {
  width: 200px;
  height: 200px;
  background-color: $bg-color;

  h3 {
    color: $mycolor;
  }
}
</style>